const jwt = require("jsonwebtoken");
const {secretKey} = require("../constant/constant")
exports.verify = (token)=>{
    token = token.split(" ");
   return  jwt.verify(token[1],secretKey,{},function (err,data) {
       if(err) console.log(err.message);
       return data;
   })
}